<!-- Begin suivi/invoice.tpl -->
{opentable}
	<tr class="sectiontableheader">
		<td width = "10%" ><a href="{$url}&sort=idusr&sens={$sens}">{$lg->is_employee}</a></td>
		<td width = "10%">{$lg->group}</td>
		<td width = "10%">{$lg->cdprj} FR</td>
		<td width = "10%">{$lg->cdprj} MA</td>
		<td width = "10%">{$lg->ltext}</td>
		<td width = "10%" align="left">{$lg->cost}</td>
	</tr>

	{if is_array($t_datas) }
		<!-- Par Users/ par Groups -->
		{foreach from=$t_users key=idusr item=s_users}
			{if $s_users.1 > 0 || $s_users.3 eq "t" }
			<tr class="sectiontableentry2">
				<td  align="left" colspan = 6>{$s_users.0} ({$s_users.2})</td>
			</tr>
				{foreach from=$t_datas[$idusr] key=gname item=t_proj }
						{foreach from=$t_proj key=prjfr item=t_prjma }
						<tr class="sectiontableentry1">
						<td ></td>
						<td align="left"  nowrap >{$gname}</td>
						<td align="left">{$prjfr}</td>
							{foreach from=$t_prjma key=prjma item=cost }
								<td align="left">{$prjma}</td>
								<td align="left">{$t_ac01[$prjma].name}</td>
								<td  align="left">{$cost}</td>
							{/foreach}
						{/foreach}
									
						</tr>
				{/foreach}
			<tr class="sectiontableentry1">	
				<td align="left" colspan = 4> </td>
				<td align="left" ><B>{$lg->total}</B></td>
				<td align="left" ><B>{$s_users.1}</B></td>
			</tr>
		{/if}
		{/foreach}
	{/if}
</table>
<!-- End  suivi/invoice.tpl -->